document.write('<script src=\"/js/util.js\"></script>');
function closeLoginDiv(){
  var Obj = window.parent;
  var show = Obj.document.getElementById('loginDiv');
  show.style.display = 'none';
}

function showLoginDiv(){
  var Win = window.parent;
  var Obj = Win.document.getElementById('loginDiv');
  var content = '<iframe id="pop_iframe_id"  style=" VISIBILITY: inherit; Z-INDEX: 1"   src="/login/login2.jsp" width="400px"  height="300px" frameborder="0"></iframe>';
  Obj.innerHTML = content;
  Obj.style.display = '';
}

function checkLogin(){
   var cookieName = GetCookie('loginName');
   if(cookieName==null){
      showLoginDiv();
   }else{
      window.parent.location="/sale/manage/index.jsp";
      return true;
   }

}
